package ui.panels.commands;

import ui.flowManager.FlowManagerImpl;
import ui.flowManager.expirimentProperties.ExperimentProperties.Agent_Group;

public class OpenPlayerPropsCommand implements Command{

	private int 			playerNumber = 0;
	private int 			gameNumber	= 0;
	private Agent_Group		group = null;
	
	public void execute()
	{
		//case the numbers was set
		if((playerNumber > 0)&&(gameNumber > 0) && (group != null))
		{
			FlowManagerImpl.getInstance().updatePlayerPropertiesPanel(gameNumber, playerNumber,group);		
		}
	}

	public void setPlayerNumber(int playerNumber) {
		this.playerNumber = playerNumber;
	}

	public void setGameNumber(int gameNumber) {
		this.gameNumber = gameNumber;
	}

	public void setGroup(Agent_Group group) {
		this.group = group;
	}	
}
